﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyMES.Domain.W.Liststructure
{
    /// <summary>
    /// 库存物资
    /// </summary>
    public class Stores
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int StoresId { get; set; }

        /// <summary>
        /// 产品物料编码
        /// </summary>
        public string ProductMaterialCode { get; set; }

        /// <summary>
        /// 产品物料名称
        /// </summary>
        public string ProductMaterialName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string SpecificationModel {  get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public int Unit {  get; set; }

        /// <summary>
        /// 入库批次号
        /// </summary>
        public string InboundBatchNumber { get; set; }

        /// <summary>
        /// 仓库
        /// </summary>
        public string Warehouse {  get; set; }
        
        /// <summary>
        /// 库区
        /// </summary>
        public string WarehouseArea { get; set; }

        /// <summary>
        /// 库位
        /// </summary>
        public string StorageLocation { get; set; }

        /// <summary>
        /// 供应商编号
        /// </summary>
        public int SupplierId { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SupplierName { get; set;}

        /// <summary>
        /// 供应商简介
        /// </summary>
        public string SupplierAbbreviation { get; set; }

        /// <summary>
        /// 生产工单号
        /// </summary>
        public int ProductionOrderNumber { get; set; }

        /// <summary>
        /// 在库数量
        /// </summary>
        public int QuantityInStock { get; set; }

        /// <summary>
        /// 库存有效期(天)
        /// </summary>
        public int StockValidityPeriod { get; set; }

        /// <summary>
        /// 入库数量
        /// </summary>
        public int StorageNumber { get; set; }
        
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDelete { get; set; }

    }
}
